﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011E7 RID: 4583
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpringRefreshScRsp : IMessage<SpringRefreshScRsp>, IMessage, IEquatable<SpringRefreshScRsp>, IDeepCloneable<SpringRefreshScRsp>, IBufferMessage
	{
		// Token: 0x17003A09 RID: 14857
		// (get) Token: 0x0600CD49 RID: 52553 RVA: 0x00229104 File Offset: 0x00227304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpringRefreshScRsp> Parser
		{
			get
			{
				return SpringRefreshScRsp._parser;
			}
		}

		// Token: 0x17003A0A RID: 14858
		// (get) Token: 0x0600CD4A RID: 52554 RVA: 0x0022910B File Offset: 0x0022730B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpringRefreshScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A0B RID: 14859
		// (get) Token: 0x0600CD4B RID: 52555 RVA: 0x0022911D File Offset: 0x0022731D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpringRefreshScRsp.Descriptor;
			}
		}

		// Token: 0x0600CD4C RID: 52556 RVA: 0x00229124 File Offset: 0x00227324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRefreshScRsp()
		{
		}

		// Token: 0x0600CD4D RID: 52557 RVA: 0x0022912C File Offset: 0x0022732C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRefreshScRsp(SpringRefreshScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CD4E RID: 52558 RVA: 0x00229151 File Offset: 0x00227351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRefreshScRsp Clone()
		{
			return new SpringRefreshScRsp(this);
		}

		// Token: 0x17003A0C RID: 14860
		// (get) Token: 0x0600CD4F RID: 52559 RVA: 0x00229159 File Offset: 0x00227359
		// (set) Token: 0x0600CD50 RID: 52560 RVA: 0x00229161 File Offset: 0x00227361
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CD51 RID: 52561 RVA: 0x0022916A File Offset: 0x0022736A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpringRefreshScRsp);
		}

		// Token: 0x0600CD52 RID: 52562 RVA: 0x00229178 File Offset: 0x00227378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpringRefreshScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CD53 RID: 52563 RVA: 0x002291A8 File Offset: 0x002273A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CD54 RID: 52564 RVA: 0x002291E7 File Offset: 0x002273E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CD55 RID: 52565 RVA: 0x002291EF File Offset: 0x002273EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CD56 RID: 52566 RVA: 0x002291F8 File Offset: 0x002273F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CD57 RID: 52567 RVA: 0x0022922C File Offset: 0x0022742C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CD58 RID: 52568 RVA: 0x0022926A File Offset: 0x0022746A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpringRefreshScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CD59 RID: 52569 RVA: 0x0022929B File Offset: 0x0022749B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CD5A RID: 52570 RVA: 0x002292A4 File Offset: 0x002274A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400525F RID: 21087
		private static readonly MessageParser<SpringRefreshScRsp> _parser = new MessageParser<SpringRefreshScRsp>(() => new SpringRefreshScRsp());

		// Token: 0x04005260 RID: 21088
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005261 RID: 21089
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04005262 RID: 21090
		private uint retcode_;
	}
}
